package com.ks.app.ad.service;
import java.util.List;
import com.ks.app.ad.hibernate.KsAd;
import com.ks.app.ad.hibernate.KsAdImage;
import com.ks.app.admin.util.Pager;
public interface KsadService {    
//////////////////////////////////////////////////////////////////////////////////////////KsAd
	public List<KsAd> GetKsAdList(String uiid, Pager pager);
	public List<KsAd> GetKsAdList(String uiid,String adname,String url,String sd,String ed,String isshow, Pager pager);
	public List<KsAd> GetKsregAdList(String username, Pager pager);
	public List<KsAd> GetKsAd(String uiid);
	public String GetKsAdFileByIdlist(String uiid);
	public String ToCreatetxt(String uiid,String username);
	
	public long addKsAd(KsAd addKsad,List<KsAdImage> adimg,String username) ;
	public long addKsAd(KsAd ksad);
	public long updateKsAd(KsAd Ksad,List<KsAdImage> lstedit,List<KsAdImage> lstadd,String username) ;
	public int deleteKsAd(String idlist,String username);
	public int deleteKsregAd(String idlist,String username);
	public List<KsAd> GetKsAdByUsername(String Username);
	public List<KsAd> GetKsAdByUrl(String Url,String Uid);
	public List<KsAdImage> GetKsAdimgByAdid(long id);
	public List<KsAdImage> GetKsAdimgByImgid(long id);
	public List<KsAdImage> GetKsAdimgByAdid_resolution(String id,String resolution);
	public String getzipfilepath(String resolution,String smsc,String versionid,String isforce,String dirpath) ;
}
